package com.example.demo.proxy;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class MyServiceAspect {

    @Before("execution(* com.example.demo.proxy.MyService.*(..))")
    public void beforeMethod() {
        System.out.println("Before method execution");
    }
}